package com.wc.alorithm_blue_bridge._模拟.Q7939;

import java.util.Scanner;

/**
 * @Author congege
 * @Description
 * 循环位移
 * https://www.lanqiao.cn/problems/7939/learning/?problem_list_id=25&page=1
 * @Date Created in 2023/12/19-23:08
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        StringBuffer st = new StringBuffer(num);
        char first = st.charAt(0);
        st.delete(0, 1);
        st.append(first);
        System.out.println(st);
    }
}
